import { type DataTableProps, NImage } from "naive-ui";
import { h } from 'vue'

export const orderCommentColumns: DataTableProps["columns"] = [
	{
		title: '封面',
		key: 'goodsHeadImg',
		width: 100,
		render: item => h(NImage, {
			src: item.goodsHeadImg,
			height: 40,
			objectFit: 'contain',
		})
	},
	{
		title: '商品名称',
		key: 'goodsName',
		width: 150,
		ellipsis: {
			tooltip: true,
		}
	},
	{
		title: '评论',
		key: 'commentContent',
		width: 250,
		ellipsis: {
			tooltip: {
				width: 300,
			},
		}
	},
	{
		title: '订单',
		key: 'orderId',
		width: 270,
	}
]
